package com.cx.service.impl;

import com.cx.mapper.UserMapper;
import com.cx.pojo.User;
import com.cx.service.EmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description GroupOneproject-IntelliJ IDEA
 * @Author Pyc
 * @Date 2020/5/15 17:20
 * @Version 1.0
 */
@Service
public class EmailServiceImpl implements EmailService {

    @Autowired
    UserMapper userMapper;

    @Override
    public User getUserByEmail(String email) {

        User user = userMapper.selectUserByEmail(email);

        return user;
    }
}
